﻿using MiniFox.Components;
using MiniFox.Infrastructure;
using MiniFox.Platform.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniFox.Platform.Providers
{
    /// <summary>
    /// 
    /// </summary>
    [AutoRegister]
    public interface IPinCodeProvider
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="ticket"></param>
        /// <returns></returns>
        PincodeContext GetPinCodeContext(Ticket ticket);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        bool SendPinCode(PincodeContext context);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="ticket"></param>
        /// <param name="pinCode"></param>
        /// <returns></returns>
        string VerifyPinCode(Ticket ticket, string pinCode);
    }
}
